import store from "../../../store";
import {Icon, Menu} from "antd";
import React from "react";

export default function AdminMenu(key, iconType, name) {
    return store.user.user ?
        store.user.user.authorization === 255 ?
            <Menu.Item key={key}>
                <Icon type={iconType}/>{name}
            </Menu.Item> : null :
        null
}